﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace AppStore.Domain.Entities
{
    public class Application
    {
        public int applicationId { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public int price { get; set; }
        public string icon { get; set; }
        public int counter { get; set; }
        public int categoryId { get; set; }

        [MaxLength]
        public byte[] ImageData { get; set; }

        [HiddenInput(DisplayValue = false)]
        public string ImageMimeType { get; set; }

        public virtual Category Category { get; set; }
    }
}
